package com.llc.mall.user.application.command.convert;

import com.llc.mall.user.application.command.commands.UserRegisterCmd;
import com.llc.mall.user.domain.user.entity.User;

public class UserConvert {

    public static User convertDo(UserRegisterCmd userRegisterCommand){
        return User.builder()
                .userName(userRegisterCommand.userName())
                .nickName(userRegisterCommand.nickName())
                .password(userRegisterCommand.password())
                .build();
    }
}
